const Router = require("koa-router")

const controller = require("../controller/upload")
const { auth, checkSelf } = require("../partMiddle/auth")
const router = new Router()

router.post("/upload", auth, checkSelf, controller.upload)

router.post("/up2oss", auth, checkSelf, controller.uploadOSS)

module.exports = router
